<template>
	<view class="u-padding-30">
		<u-form>
			<u-form-item label="反馈内容" label-position="top">
				<u-input type='textarea' v-model="form.content" placeholder="请描述您的问题和意见，以便我们提供更好的帮助"></u-input>
		   </u-form-item>
	
	
			<u-form-item  label="上传图片" label-position="top">
							<w-upload :Number='1' v-model="form.image"  width="300"></w-upload>
			</u-form-item>
	   </u-form>	

	   
	   
	   <view style="margin-top: 40rpx;">
		   <u-button @click="submit" type="primary" shape="circle">提交</u-button>
	   </view>
	   <u-toast ref="uToast" />
	</view>
</template>

<script>
	export default{
      data(){
		  return{
			  form:{
				  content:"",
				  image:[]
			  }
		  }
	  },
	  methods: {
	  	submit() {
	  		this.$u.post('/user/feedback', this.form).then(res => {

  this.$refs.uToast.show({
								  	title: '提交成功',
								  	type: 'success',
								  	back :true
								  })	  			
	  		}).catch(err => {
	  		   
	  		})
	  	}
	  },
	}
</script>

<style>
</style>
